package cn.edu.sysu.dto;

import java.sql.Date;

import cn.edu.sysu.util.CONSTANT;

public class ProblemDto {

	int problem_id;
	int use;
	Date post_time;
	public ProblemDto(int problem_id, int use, Date post_time) {
		super();
		this.problem_id = problem_id;
		this.use = use;
		this.post_time = post_time;
	}
	public int getProblem_id() {
		return problem_id;
	}
	public void setProblem_id(int problem_id) {
		this.problem_id = problem_id;
	}
	public int getUse() {
		return use;
	}
	public void setUse(int use) {
		this.use = use;
	}
	public Date getPost_time() {
		return post_time;
	}
	public void setPost_time(Date post_time) {
		this.post_time = post_time;
	}

	public String getProblemUrl(){
		return CONSTANT.STORAGE_BASE+this.problem_id;
	}
	@Override
	public String toString() {
		return "ProblemDto [problem_id=" + problem_id + ", use=" + use
				+ ", post_time=" + post_time + "]";
	}


}
